home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / text-faq < prev    next >
Encoding:
Internet Message Format  |  1994-05-04  |  30.1 KB

  1. Subject: comp.text Frequently Asked Questions
  2. Newsgroups: comp.text,news.answers,comp.answers
  3. From: clewis@ferret.ocunix.on.ca (Chris Lewis)
  4. Date: Tue, 3 May 1994 13:20:12 GMT
  5.  
  6. Archive-name: text-faq
  7. Last-Modified: Sat Mar 19 21:56:40 EST 1994
  8.  
  9.         Frequently Asked Questions for comp.text
  10.                Chris Lewis
  11.  
  12.            Copyright 1991 - 1994.
  13.  
  14.         Redistribution for profit, or with altered
  15.         content/format prohibited without permission
  16.         of the author.  Any other redistribution must
  17.         include this copyright notice and attribution.
  18.  
  19. (This list was originally compiled by Nils-Peter Nelson, with
  20. contributions from Jaap Akkerhuis, Dick Dunn, Nick Haines, Steve
  21. Harley, Harro Kremer, Chris Lewis, John Macdonald, Bob Morris,
  22. Nils-Peter Nelson, Chip Rosenthal.)
  23.  
  24. If you have comments or additions, please contact Chris Lewis,
  25. textfaq@ferret.ocunix.on.ca (note Reply-to).
  26.  
  27. Changes are marked with a "|" in left column.  Many newsreaders
  28. (e.g. rn, trn) allow you to search for them with "g^|".
  29.  
  30. Changes this issue: Source for Adobe Transcript.
  31.             Online Troff manual availability.
  32.  
  33. ------------------------------
  34. Subject: Questions discussed:
  35.  
  36. General interest:
  37.  
  38.   GN1. What is the difference between word processing, desktop
  39.          publishing, technical publishing, electronic publishing, etc?
  40.   GN2. Which do I need?
  41.   GN3. What is a markup language?
  42.   GN4. What is SGML? ODA?
  43.   GN5. What is WYSIWYG? Do I need it?
  44.   GN6. What is PostScript?
  45.   GN7. What is TeX?
  46.   GN8. What are some popular Desktop Publishing packages?
  47.   GN9. Where can I read more?
  48.   GN10. What is Lout?
  49.  
  50. Specific to troff:
  51.  
  52.   TR1. What is troff? Why are there so many questions about it?
  53.   TR2. How many varieties of troff are there? What are the differences?
  54.   TR3. What are some of the filters for troff output?
  55.   TR4. What other troff printer drivers are there?
  56.   TR5. How do I get my troff to drive my printer?
  57.   TR6. None of the mentioned packages support *my* printer.  Help?
  58.   TR7. How to I embed PostScript in troff?
  59.   TR8. What are fonts?  How do I add fonts?
  60.   TR9. What are width tables?
  61.   TR10. How do I make width tables?
  62.   TR11. What are: pic, eqn, tbl, grap, refer?
  63.   TR12. How do I preview my troff on my screen?
  64.   TR13. I need makedev, but my DWB doesn't come with it.
  65.   TR14. How can I get nroff/troff for DOS?
  66.   TR15. What books can I get about DWB?
  67.  
  68. khe discussions below are organized in digest-form, so you may
  69. scan ahead for "^Subject:" to move from one topic to the next
  70. (the ^G command does this in rn), and you may search for "^Subject: GN5"
  71. (for example) to jump to the discussion of a particular question.
  72. (The caret "^" before "Subject" is a convention of regular expressions
  73. that restricts the search to match only at the beginning of a line.)
  74.  
  75. ------------------------------
  76. Subject: GN1. What is the difference between word processing, desktop
  77.     publishing, technical publishing, electronic publishing, etc?
  78.  
  79. Electronic Publishing is an all-encompassing term that means
  80. using computers (instead of hot lead) to set type for
  81. documents.  Although publishing includes a sequence of
  82. processes right through distribution, EP tends to emphasize
  83. document composition through production of a single master copy.
  84.  
  85. It is helpful to picture a graph with "complexity" along
  86. the X axis and "length" along the Y axis.  Complexity
  87. varies from straight text to footnotes and indexing to
  88. tables to line drawings to gray-scale illustration to
  89. full color.  Length varies from 1 page to 10,000 or more
  90. (better make the Y axis logarithmic!)
  91.  
  92. Word processing dominates the lower left of the graph
  93. (business letters).  Desktop publishing dominates the lower
  94. right (advertising layout).  Host-based text formatters like
  95. troff, TeX and Scribe dominate the upper-left (phone book).
  96. Proprietary systems have traditionally dominated the upper
  97. right (Sears catalog, encyclopedia); these are being supplanted
  98. by hybrids consisting of pieces from the other segments.
  99.  
  100. The middle of the graph is fair ground for everyone but is
  101. increasingly the domain of Technical Publication systems like
  102. Interleaf and FrameMaker.
  103.  
  104. ------------------------------
  105. Subject: GN2. Which do I need?
  106.  
  107. Word processors and Desktop publishers are more than adequate
  108. for documents of tens of pages.  Because they are mostly
  109. limited to PC's and Macintosh, they may be impediments in
  110. producing long documents, which would have to be done in
  111. digestible chunks (say, a chapter at a time).  High-end systems
  112. are usually UNIX-based, which means computer power and document
  113. capacity are limited only by how much you want to spend.
  114.  
  115. ------------------------------
  116. Subject: GN3. What is a markup language?
  117.  
  118. All formatters need to distinguish the text to be printed
  119. from instructions about how to print; the latter is called
  120. markup.  Procedural markup tells the software what to do
  121. (space down, invoke a macro); generic markup describes the
  122. thing to be printed (heading, cross-reference, etc.)  Troff
  123. and TeX are examples of procedural markups; ODA and SGML
  124. prescribe rules for generic languages; and good macro packages
  125. for troff or TeX make them, more-or-less, generic markup
  126. languages.
  127.  
  128. Many of the word processing packages (such as Word or Wordstar)
  129. can only do procedural markup - the software is told by the
  130. user "how to display it", rather than "what this is" - and leaving
  131. the visual representation to preprogrammed rule sets (ie:
  132. macros) - see GN5.
  133.  
  134. ------------------------------
  135. Subject: GN4. What is SGML? ODA?
  136.  
  137. SGML is the Standard Generalized Markup Language.  SGML is defined
  138. in International Standard ISO 8879:1986.  SGML is a language for
  139. formally describing the structure and contents of documents.  SGML
  140. is also the syntax used by documents so described.
  141.  
  142. SGML is an important move in the direction of separating information
  143. from its presentation, e.g. making different presentations possible
  144. for the same information.  The better macro packages for TeX and
  145. troff attempt to do the same thing.  This is in contrast with WYSIWYG -
  146. see GN5.
  147.  
  148. SGML is more fully discussed in comp.text.sgml.
  149.  
  150. SGML is the name of a directory at the public FTP site ftp.ifi.uio.no
  151. where you can find a (draft) FAQ, a bibliography, and more information.
  152.  
  153. ODA: Office [Open] Document Architecture, takes a similar approach
  154. but stresses blind interchange.  ODA is defined in the multi-part
  155. standard ISO 8613:1988, in the CCITT T.410 series recommendations,
  156. and in ECMA standard 101.
  157.  
  158. ------------------------------
  159. Subject: GN5. What is WYSIWYG? Do I need it?
  160.  
  161. What-you-see-is-what-you-get: essential for advertising layout,
  162. but a useless time-waster for a phone book.  WYSIWYG is the
  163. opposite of SGML, in that in SGML you know what something
  164. is (say, a chapter heading) but you don't know what it looks
  165. like; in WYSIWYG you know what it looks like but you don't
  166. know what it is.  The obvious benefit of WYSIWYG is that the
  167. author is aware at all times of the final appearance of the
  168. document; the liability is that the vendor gets to choose the
  169. internal representation of the document, and may not tell you
  170. what it is.
  171.  
  172. The best trade-off would be a WYSIWYG system with a well-documented,
  173. usable markup language.  There is a system called "GRIF" which
  174. supposedly supports SGML and WYSIWYG which is possibly available.
  175. the "doc" program in Interviews is a freeware UNIX WYSIWYG
  176. wordprocessor.
  177.  
  178. We should caution that few of the self-proclaimed WYSIWYG systems
  179. actually show the exact same thing on screen as you get on a printer:
  180. What You See Is Sort Of Like What You Get.  When 300 dpi, 17 inch
  181. terminals are common true WYSIWYG will be practical.
  182.  
  183. Being aware of the final appearance of a document is not universally
  184. accepted as a "good thing", Robertson Davies has suggested that the
  185. WYSIWYG approach to writing contributes to "blather" (and he should
  186. know as a past master ;-), while others have argued that the final
  187. appearance can't always be known.  WYSIWYG processors tend to
  188. encourage an approach that makes re-use and re-packaging of
  189. documents for alternate methods of presentation (eg: on-line
  190. and paper documentation) difficult.  Efficiency studies have shown,
  191. for at least certain types of documentation, that documents are
  192. written faster with text processors than WYSIWYGS.
  193.  
  194. ------------------------------
  195. Subject: GN6. What is PostScript?
  196.  
  197. PostScript is a language for output devices.  It does for output
  198. devices what Unix does for processors, viz., it allows a common
  199. software interface despite differences in hardware platform.
  200. PostScript controllers exist for paper printers from 4 pages
  201. per minute up to 92 ppm, from 300 dots per inch to over 6000 dpi
  202. typesetter, and for film recorders, color printers and X Window
  203. terminals.  Without PostScript, every text formatter has to
  204. understand the idiosyncrasies of every vendor's hardware.
  205. See comp.lang.PostScript for more.  PostScript is a registered
  206. trademark of Adobe Corporation.
  207.  
  208. ------------------------------
  209. Subject: GN7. What is TeX?
  210.  
  211. TeX is a batch formatter similar to troff developed by Don Knuth
  212. at Stanford.  It is most popular in universities and is freely
  213. traded because of the lack of licensing restrictions. ArborText
  214. sells a commercial version for big and small (ie PC's) machines.
  215. There are various versions for PC-class machines. LaTeX (Leslie
  216. Lamports version of TeX) is a more friendly version of the same
  217. formatter. It does for TeX what macros does for troff.  See
  218. comp.text.tex for TeX FAQs.
  219.  
  220. [To be pedantically correct, there are really only very few versions
  221. of TeX.  However, the relationship between the formatter and
  222. the macro sets (e.g.: LaTeX) is considerably more blurry in TeX than
  223. troff, and the macro package tends to be compiled-into different
  224. instantiations of TeX.  This is truly part of the culture - TeXies
  225. refer to "latex documents", troffers more generally refer to
  226. "troff with mm macros".  It's confusing.]
  227.  
  228. Oh, and to save yourself sounding like an idiot, the "eX" in "TeX"
  229. is pronounced so that it rhymes with "blecchh", not "sex" (the
  230. X is a greek chi).
  231.  
  232. ------------------------------
  233. Subject: GN8. What are some popular Desktop Publishing packages?
  234.  
  235. Aldus practically invented Desktop publishing with "PageMaker".
  236. Ventura is the largest selling of the high-end PC packages.
  237.  
  238. WordPerfect and Word are lower in functionality but less
  239. expensive and exist on both DOS and Macintosh.  These are
  240. essentially word-processing packages rather than Desktop
  241. Publishing.
  242.  
  243. See comp.text.desktop for more information. Interleaf
  244. and FrameMaker are workstation-based and are higher in
  245. price and functionality, and require more substantial
  246. machine resources, but give you more in return.  FrameMaker
  247. is now available for Windows 3.1, giving transportability
  248. between the DOS/Windows, Mac and UNIX world.  See comp.text.desktop,
  249. comp.text.frame and comp.text.interleaf.
  250.  
  251. ------------------------------
  252. Subject: GN9. Where can I read more?
  253.  
  254. Publish!, Business Publishing and Seybold Report are all
  255. excellent journals for keeping up to date.  There are
  256. books devoted to most of the major packages, too many
  257. to mention here.
  258.  
  259. Richard Rubinstein's book "Digital Typography", Addison-Wesley
  260. is apparently a readable book that goes into the details of
  261. composition systems, fonts and reproduction.
  262.  
  263. -------------------------------
  264. Subject: GN10. What is Lout?
  265.  
  266. Lout is a new batch formatter drawing a fair bit from TeX and troff.
  267. Its main strengths are a more powerful and much easier to use "macro"
  268. programming language, and is reputed to be as "complete" as TeX or
  269. the troff formatting suite.  It only generates PostScript.
  270.  
  271. Lout was written by Jeff Kingston (jeff@cs.su.oz.au) and
  272. is available via anon FTP from ftp.cs.su.oz.au directory "jeff".
  273.  
  274. ------------------------------
  275. Subject: TR1. What is troff? Why are there so many questions about it?
  276.  
  277. Troff is one of the oldest text formatters in existence. Because
  278. it was distributed as part of the Unix operating system for
  279. many years, it is by default on several hundred thousand machines,
  280. far more than any other Unix text formatter.  It originated
  281. in AT&T Bell Laboratories in 1971 and its author was Joseph
  282. Ossanna.  Its legitimate father was a program called runoff,
  283. written at MIT in the 1960's.
  284.  
  285. Because there is no comp.text.troff, additional questions related
  286. to troff are shown below.  The remainder of the FAQ list is
  287. devoted to troff; bail out now if you are not interested.
  288.  
  289. ------------------------------
  290. Subject: TR2. How many varieties of troff are there? What are the differences?
  291.  
  292. The original Ossanna troff generates proprietary printer codes for the
  293. Wang C/A/T Phototypesetter; we'll call this "CAT Troff".  This version
  294. comes bundled in many systems, in particular, SunOS, most other
  295. Berkeley-derived systems, and is contained in the Xenix Text Processing
  296. package.  The AT&T, BSD and Xenix variants all differ slightly, but not
  297. in any important ways.  CAT troff is useless without filters to convert
  298. the "CAT codes" to something else, especially since the C/A/T is as
  299. common as a California condor.  These filters are described later.
  300.  
  301. In 1981, Brian Kernighan of Bell Laboratories rewrote troff to generate
  302. a generic typesetting language.  These troffs are called "ditroff" (for
  303. device-independent troff) and contain some additional features such as
  304. arbitrary line drawing, and more flexible font handling.  "Documenter's
  305. Workbench" (DWB) is a package containing ditroff and several other
  306. typesetting filters.  The latest AT&T version is DWB 3.3, which sold as
  307. source code; most commercial binary variants (Elan, SoftQuad, Image
  308. Network, etc.) are based on DWB 2.0.  The Free Software Foundation
  309. distributes a re-engineered version of ditroff called groff.
  310.  
  311. If you have a troff and want to know which it is, type:
  312.     troff < /dev/null > /dev/null
  313. If it responds with "typesetter busy" or "No /dev/cat; use -t or -a",
  314. you have CAT troff, otherwise it's ditroff.  If you get an answer from:
  315.     dwbv
  316. you have the AT&T release 3.0 or later.  The differences are too
  317. numerous and subtle to document here, but the variants are about
  318. 95% compatible.  All are ASCII based, but DWB 3.3, Groff and
  319. AIX 3.2's troff also accept ISO 8859-1 (aka ISO Latin 1), the
  320. Western European character set and are 8 bit clean.  Any 8-bit
  321. clean ditroff can be reconfigured to support alternate 8859-x
  322. character sets.  AIX 3.2 ditroff also supports Kanji (multi-byte)
  323. to a certain extent (as per IBM-932).
  324.  
  325. ------------------------------
  326. Subject: TR3. What are some of the filters for troff output?
  327.  
  328. Psroff is a suite of programs that allow you to translate CAT troff
  329. output or ditroff output format into PostScript, HP Laserjet (with
  330. incremental font downloading) or ditroff.  See description of hp2pbm
  331. below for driving printers other than these three.
  332.  
  333. Psroff works with all versions of CAT troff and ditroff, including
  334. groff.  Psroff allows you to change fonts on the fly (unlike any other
  335. CAT troff converter).  Psroff has been used to drive HP Laserjet and
  336. clone printers, PostScript (including Display PostScript and Sun
  337. Pageview), X windows previewers (such as xditview and xtroff),
  338. Ghostscript and many others.
  339.  
  340. Psroff comes with a large suite of utility programs that allow you to
  341. create, manipulate, display HP Laserjet and PostScript fonts, as well
  342. as construct width tables for these fonts from a variety of sources,
  343. including TeK PK format, HP SFP, and PostScript.  Psroff also comes
  344. with a number of other utilities, such as PostScript page reordering,
  345. Ascii-2-PostScript converters etc.  Psroff 3.0 is the only troff HP
  346. Laserjet filter fully supporting scalable fonts or HPGL/2 graphics on
  347. HP LJ III printers.
  348.  
  349. Psroff 3.0 is capable of performing some limited emulation of ditroff
  350. features (eg: line drawing) with CAT troff.
  351.  
  352. Psroff 3.0 is available from comp.sources.unix, volume 24.  Or from
  353. ftp.uunet.ca, in /distrib/chris_lewis/psroff3.0pl17 (fully patched).
  354. Patch level 17 is current.  The author is Chris Lewis,
  355. clewis@ferret.ocunix.on.ca.
  356.  
  357. Adobe Transcript is a commercial package similar to psroff, in that it
  358. contains filters for converting ditroff or CAT troff.  But only to
  359. PostScript.  It also contains filters for Ascii-2-PostScript, and is
  360. often installed as part of SunOS printcap filters.  Adobe Transcript
  361. contains a user interface script called "psroff" which should not be
  362. confused with the other psroff (but often is).  Information can be
  363. | acquired on its availability by contacting the Qualix group at
  364. | 1-800-245-UNIX, or info@qualix.com.  Supports psfig with a little
  365. hacking (instructions in psfig release).
  366.  
  367. The groff package from the Free-Software-Foundation includes drivers
  368. for PostScript, DVI, X and constant-width printers, and the complete
  369. suite of troff preprocessors with the exception of grap.  It is
  370. available via anonymous ftp from several sources (it needs the FSF C++
  371. or AT&T C++ 2.0 compilers to compile, but many binary versions are also
  372. available for FTP).  Supports character kerning (unlike CAT troff or
  373. DWB).  Does not contain an HP Laserjet driver.  A "dvi2lj" or psroff
  374. 3.0 can be used as a HP Laserjet driver for groff.  Groff has made some
  375. slight changes in the ditroff and width table formats, so use with
  376. non-groff drivers may need a little fiddling.  Written by James Clark.
  377. The latest version is 1.08.  The latest version can always be ftped
  378. from prep.ai.mit.edu:pub/gnu.
  379.  
  380. ------------------------------
  381. Subject: TR4. What other troff printer drivers are there?
  382.  
  383.     - thack: CAT to PostScript.   c.s.u. archives.
  384.       For very casual use only.  Has no width tables, and can't,
  385.       for example, make tbl box corners line up.)  Available from
  386.       c.s.u archives.  Very simple to build/install.
  387.  
  388.     - tpscript: ditroff to PostScript (reasonably good filter)
  389.       c.s.u archives.  Does not support psfig.
  390.  
  391.     - jetroff: ditroff to HP Laserjet (no support for III scalable
  392.       fonts).  Commercial version (jetroff 2) no longer available.
  393.       Jetroff 1.0 (shareware) is available from c.s.m archives.
  394.       Author: Rick Richardson.  Would need some fiddling to work
  395.       with groff.
  396.  
  397.     - troff2lj: CAT troff to HP Laserjet.  Limited font handling
  398.       functionality - package discontinued by author when psroff
  399.       2.0 was released.
  400.  
  401.     - lcat/lroff: obsolete, should be junked, precursor to psroff.
  402.  
  403.     - hp2pbm: not a troff-2-something filter per-se.  However,
  404.       given a HP Laserjet driver, hp2pbm can convert HP Laserjet
  405.       codes to Jef Poskanzer's PBM format, which permits you
  406.       to use any of the many output formats supported by PBM.
  407.       Author: Chris Lewis and Klaus Schallhorn.  Hp2pbm and PBM+
  408.       are accessible from c.s.m archives.  Hp2pbm includes a
  409.       24 pin Epson driver and a built-in G3 FAX driver.
  410.     
  411.     - cat2desk is a version of lcat/lroff modified to work with
  412.       Deskjets.  Psroff will work with newer deskjets (especially
  413.       scalable font ones with PCL4), but not older ones (the font
  414.       format is different) which are PCL3.
  415.  
  416. ------------------------------
  417. Subject: TR5. How do I get my troff to drive my printer?
  418.  
  419.     a) If you already have CAT troff and you don't need pic or grap:
  420.  
  421.        Your best bet is psroff if you want to drive printers supported
  422.        by psroff (PostScript, HP Laserjet, ditroff filters, PBM+
  423.        supported devices (including Epson 24 pin, FAX).  Transcript
  424.        is an alternative for PostScript output (but doesn't
  425.        allow you to mount fonts, no drawing support).
  426.  
  427.     b) You already have ditroff:
  428.  
  429.        You may already have a driver for your printer.  Check.
  430.        If not, your best bets are jetroff, psroff, tpscript,
  431.        transcript.
  432.     
  433.     c) You don't have a troff or, you have CAT troff and you need pic
  434.        and grap:
  435.  
  436.        Get "a DWB", such as groff (no grap), DWB 3, or one of the
  437.        commercial variants.
  438.  
  439. ------------------------------
  440. Subject: TR6. None of the mentioned packages support *my* printer.  Help?
  441.  
  442. This area is not entered into lightly. Look for a commercial or free
  443. package that supports your device.  Failing that, try to acquire
  444. (legally!) the source code for another device and modify it.  The AT&T
  445. documentation "Troff User's Manual" has a Reference section that
  446. completely documents the ditroff language.  SunOS and Psroff 3.0
  447. documentation contain descriptions of the CAT troff language.  Psroff
  448. 3.0 is designed for drop-in drivers, and may be the easiest to extend.
  449. Coupled with hp2pbm, psroff3.0 can probably drive just about any kind
  450. of printer that supports raster graphics with relatively little trouble
  451. (see Epson 24 pin driver for guidance).
  452.  
  453. If you can get a PostScript driver and are running on current SunOS,
  454. you could consider developing a NeWSprint driver for your printer.
  455. NeWSprint is Sun's NeWS (PostScript language interpreter extended for
  456. driving displays; not the same thing as "Display PostScript"(tm).  This
  457. may be easier than developing a troff driver, since all NeWSprint
  458. really needs is the ability to send a bitmap to a printer. Source and
  459. developer's documentation are shipped standard with NeWSprint.
  460.  
  461. Thack is ideal for quick hacks with CAT troff for printers that have
  462. dynamically scalable fonts (aside from the fact that thack has no
  463. facilities for building width tables).
  464.  
  465. ------------------------------
  466. Subject: TR7. How to I embed PostScript in troff?
  467.  
  468. There are two methods:
  469.  
  470.     - including "absolute" PostScript.  PostScript that knows where
  471.       it goes on the page, and decides its own scaling.
  472.       All versions of ditroff support this one way or another.
  473.       CAT troff does as well when coupled with psroff.  This is
  474.       most often supported by some permutation of \! or \X'...'
  475.       directives.
  476.  
  477.     - including PostScript, automatically scaling and placing the
  478.       image.  This requires that the PostScript be EPS (so that the
  479.       size and origin of the image is accessible).  Groff and
  480.       DWB 3.3 have facilities for including EPS files and automatically
  481.       placing/scaling them on the page, including leaving space in the
  482.       troff text for the image.  See if your documentation includes
  483.       remarks about "PSPIC", "PS" or other similar macros.
  484.  
  485.       Psfig (c.s.u archives) is a troff preprocessor which will permit
  486.       this sort of automatic placement/scaling with an older version
  487.       of ditroff (such as DWB 2.1) as long as the backend printer driver
  488.       understands it.  Psroff 3.0 and Adobe Transcript support psfig with
  489.       ditroff, but only Psroff 3.0 will support psfig with CAT troff.
  490.  
  491. Caution: many PC and MAC graphics packages generate sloppy PostScript which
  492. cannot be gracefully included in other documents.
  493.  
  494. ------------------------------
  495. Subject: TR8. What are fonts?  How do I add fonts?
  496.     
  497. A font is a set of characters in an specific typeface.  Unlike
  498. TeX, troff does not consider the same typeface at different
  499. sizes to be different fonts.
  500.  
  501. You have to make the width tables, install them, and tell the
  502. troff filter how to emit/request the fonts.  The details differ
  503. from one package to another.  Check the documentation.
  504.  
  505. ------------------------------
  506. Subject: TR9. What are width tables?
  507.  
  508. Both CAT troff and ditroff need to know the width of each character
  509. that you use.  The widths of each character (along with some additional
  510. characteristics) are arranged in a file for each font.  There are
  511. basically five different width table formats:
  512.  
  513.     1) CAT troff: uses a binary table of 224 unsigned chars.
  514.     2) MIPS (and RISC/Ultrix) CAT troff uses an ASCII dump of (1)
  515.     3) DWB 2.x and several of the commercial variants use an ASCII
  516.        format that is compiled into a binary form by a special program
  517.        called "makedev".
  518.     4) DWB 3.x uses the ASCII format mentioned in (3) - doesn't need
  519.        to be compiled.
  520.     5) Groff uses the ASCII format mentioned in (4) with minor variations.
  521.  
  522. If the width tables are wrong, character spacing will look funny - up
  523. to and including overlapping characters, and broken right justification.
  524.  
  525. ------------------------------
  526. Subject: TR10. How do I make width tables?
  527.  
  528. Creating them is not hard.  Getting the actual metrics sometimes is.
  529.  
  530. The AT&T documentation "Troff User's Manual" describes the DWB width
  531. table format.  Your DWB may already have a manual page for it.
  532.  
  533. Psroff 3.0 contains documentation on DWB and CAT troff format width
  534. tables.
  535.  
  536. DWB 3.3, Psroff 3.0 and tpscript each have a utility for automatically
  537. creating width tables by sucking the data out of a PostScript device.
  538.  
  539. Psroff 3.0 and jetroff have utilities for creating width tables from
  540. HP laserjet fonts.
  541.  
  542. Psroff 3.0 can convert between any of the 5 width table formats.
  543.  
  544. Consult the documentation to find out where to put the files.
  545.  
  546. ------------------------------
  547. Subject: TR11. What are: pic, eqn, tbl, grap, refer?
  548.  
  549. These are the basic troff preprocessors shipped with DWB:
  550.  
  551.     - pic allows you to draw arbitrary line-drawing graphics in a
  552.       machine-independent fashion.
  553.     - eqn allows you to construct mathmatical equations.
  554.     - tbl provides a mechanism for specifying and displaying
  555.       automatically sized/configured tables 
  556.     - grap uses pic to construct graphs.
  557.     - refer provides a mechanism for searching for and formatting
  558.       bibligraphic references.
  559.  
  560. Neither pic nor grap are included with CAT troff, but eqn, tbl and
  561. frequently refer are present.  Groff does not at present support grap.
  562.  
  563. ------------------------------
  564. Subject: TR12. How do I preview my troff on my screen?
  565.  
  566.     a) X windows: xditview and xtroff (X11R5 contrib directory, xtroff
  567.        also from ftp.cs.toronto.edu) and gxditview (from groff) will
  568.        preview ditroff format (groff requires gxditview), including
  569.        psroff 3.0's ditroff output from CAT troff.
  570.     b) Display PostScript (ie: AIX 3 & DEC dpsexec, NeXT,
  571.        Sun Pageview, Ultrascript, Ghostview plus GhostScript): any
  572.        PostScript generating troff.  (Theoretically at least.  May need
  573.        a teensy bit of PostScript hacking to get a reasonable pager
  574.        (psroff3.0 has this built in).  Pageview and Ultrascript have some
  575.        limitations so may not work with a specific PostScript
  576.        generator)
  577.     c) Others: You can probably find a PBM converter for it,
  578.        so use a Laserjet-generating troff configuration plus hp2pbm.
  579.        (eg: Sun rasters, 3b1 screens, EGA, VGA, GIFF, TIFF etc.)
  580.        I preview on X by generating PCL with psroff, converting
  581.        to PBM with hp2pbm, then display with pbm2Xd (part of hp2pbm)
  582.        and xwud (part of X windows).
  583.     d) Others: You may be able to find a DVI driver for it,
  584.        so use a DVI-generating troff configuration (namely,
  585.        groff's ditdvi) and use the appropriate dvi2<whatever> filter.
  586.     e) AIX 3.2 has a good AIXwindows 1.2 and Motif1.1 based
  587.        previewer called "xpreview".
  588.  
  589. ------------------------------
  590. Subject: TR13. I need makedev, but my DWB doesn't come with it.
  591.  
  592. A freeware version called "mkfont" is available from c.s.m, and
  593. is also included in Jetroff 1.0.  The Jetroff version is to be
  594. preferred because it's been extended a bit more to be an exact
  595. "makedev" replacement w.r.t. command line arguments.
  596.  
  597. ------------------------------
  598. Subject: TR14. Nroff/Troff on DOS machines
  599.  
  600. Arto Viitanen (av@ohdake.cs.uta.fi) has used djgpp (the MSDOS port of
  601. gcc 2.01) to compile groff-1.05 for MSDOS. The binaries are available
  602. at garbo.uwasa.fi in /pc/unix. The file is groff396.zip and it's 725 Kb.
  603. A port of version 1.07 by Mauro Condarelli is available from omnigate.
  604. clarkson.edu in pub/msdos/djgpp/pub.  This port includes the groff
  605. driver and also the dvi device, both of which were missing in the 1.05
  606. port.  Both ports work well except for gpic which does not seem to work on
  607. systems lacking a math coprocessor.
  608.  
  609. There's also a OS/2 port using the EMX environment (GCC 2.3.3), which
  610. includes a DOS extender.  The latest version may support DOS directly.
  611.  
  612. Elan, Image Network, and SoftQuad have commercial versions of DWB
  613. for DOS machines.  They tend to be a bit pricey - in the $500-$1200
  614. range.
  615.  
  616. There are many freeware versions of nroff that have either already
  617. been ported, or should be easy to port to DOS.  For example, C
  618. implementations of Kernighan and Plauger's "Software Tools" "roff"
  619. (see Ozan Yigit's implementation available from comp.sources.unix).
  620. [roff isn't a complete implementation of nroff, depends on what
  621. you need.]
  622.  
  623. Related: Ghostscript can be used on DOS to preview the output of any
  624. PostScript-producing application, including groff.  If you do use
  625. GhostScript, make sure that you get the latest version with the good
  626. fonts.  GhostScript also contains CGA and VGA drivers for on-screen
  627. preview.
  628.  
  629. Cawf2 a C port of Henry Spencer's Amazing Workable Formatter (originally
  630. an awk program).  It apparently does a reasonable job with -ms and -man
  631. macros.  The C version is by Vic Abell and is available from ftp.cc.
  632. purdue.edu in pucc/cawf.  It works on MSDOS and most or all UNIX systems.
  633.  
  634. I'd appreciate any other leads on DOS nroff/troffs.
  635.  
  636. ------------------------------
  637. Subject: TR15. What books can I get about DWB?
  638.  
  639. |    Troff User's Manual, by Ossanna and Kernighan, is available for
  640. |    anonymous ftp as netlib.att.com:/netlib/research/cstr/54.ps.Z.
  641.  
  642.     Document Formatting and Typesetting on the UNIX System,
  643.     2 volumes, Nerain Gehani, Silicon Press, ISBN 0-9615336-2-5.
  644.     A very good general reference; covers troff, the preprocessors,
  645.     and most of the popular macro packages.
  646.  
  647.     Typesetting Tables on the UNIX System, Henry McGilton, Mary McNabb.
  648.     Trilithon Press, ISBN 0-9626289-0-5.  A very good, very complete
  649.     reference and tutorial on TBL.
  650.  
  651.     Unix Text Processing, Dale Dougherty & Tim O'Reilly, Hayden Books,
  652.     ISBN 0-672-46291-5.  A good discussion not just of troff (ms & mm),
  653.     tbl, eqn, and pic, but also vi and ex, sed, and awk.
  654.  
  655.     Troff typesetting for Unix Systems, Sandra L. Emerson & Karen Paulsell
  656.     (kjp@well?) Prentice-Hall, 0-13-930959-4.  This is a good book
  657.     for people wishing to write raw troff (as in rolling your own
  658.     macros)
  659.  
  660.     troff-Programmierung: proffessionelle Textverarbeitung und
  661.         Schriftsatz unter UNIX, Claus Schirmer, Hanser Verlag 1990,
  662.         ISBN 3-446-15649-6.  Reportedly a superb book on troff
  663.     programming.  Ie: a ms-like macro package is built in a
  664.     step-by-step way.  Don't know if there's non-German language
  665.     version.
  666.  
  667.     The UNIX Text Processing System, Kaare Christian, Wiley, 1987.
  668.     Is especially good on REFER, the best chapter on REFER
  669.     available.  [This book now appears to be out of print.]
  670.  
  671.     Text processing and typesetting with UNIX, D.W. Barron and Mike Rees,
  672.     Addison-Wesley, 1987.
  673. -- 
  674. Chris Lewis: _Una confibula non sat est_
  675. Phone: Canada 613 832-0541  Ferret list: ferret-request@ferret.ocunix.on.ca
  676. Latest psroff: FTP://ftp.uunet.ca/distrib/chris_lewis/psroff3.0pl17/*
  677. Latest hp2pbm: FTP://ftp.uunet.ca/distrib/chris_lewis/hp2pbm/*
  678.  
  679.